package com.srwl.mytx.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.srwl.easeui.widget.MyTitleBar;
import com.srwl.mytx.R;
import com.srwl.mytx.fragment.SettingsFragment;


public class SettingActivity extends BaseActivity {

    private SettingsFragment settingsFragment;
    RelativeLayout fragment_container;
    private MyTitleBar titleBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        fragment_container =  findViewById(R.id.fragment_container);
        settingsFragment = new SettingsFragment();
        getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, settingsFragment).commit();
        titleBar = findViewById(R.id.title_bar);
        titleBar.setLeftLayoutClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
